class CreateUserShops < ActiveRecord::Migration
  def self.up
    create_table :user_shops do |t|
      t.references :user
      t.references :shop_address

      t.integer :visits_count
    end

    add_index :user_shops, :user_id
    add_index :user_shops, :shop_address_id
  end

  def self.down
    drop_table :user_shops
  end
end
